<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>MSMS - Login</title>
<link rel="stylesheet" href="<?php echo base_url(); ?>public/css/screen.css" type="text/css" media="screen" title="default" />
<!--  jquery core -->
<script src="<?php echo base_url(); ?>public/js/jquery/jquery-1.4.1.min.js" type="text/javascript"></script>

<!-- Custom jquery scripts -->
<script src="<?php echo base_url(); ?>public/js/jquery/custom_jquery.js" type="text/javascript"></script>

<!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->
<script src="<?php echo base_url(); ?>public/js/jquery/jquery.pngFix.pack.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	$(document).pngFix( );
	$('#username').focus();
});
</script>
</head>
<?php
	$failed = trim($this -> session -> userdata('failed'));
?>
<body id="login-bg">

<!-- Start: login-holder -->
<div id="login-holder"> 
  
  <!-- start logo -->
  <div id="logo-login"> 
    <!--<a href="index.html"><img src="images/shared/logo.png" width="156" height="40" alt="" /></a>--> 
    
  </div>
  <!-- end logo -->
  
  <div class="clear"></div>
  
  <!--  start loginbox ................................................................................. -->
  <div id="loginbox"> 
    
    <!--  start login-inner -->
    <form method="post" action="<?=site_url('/administrator/login/')?>" name='frmLogin' >
      <div id="login-inner">      
        <table border="0" cellpadding="0" cellspacing="0">
          <tr>
            <th>ឈ្មោះអ្នកប្រើប្រាស់</th>
            <td><input type="text" id="username"  class="login-inp" name="username"  /></td>
          </tr>
          <tr>
            <th>ពាក្យសំងាត់</th>
            <td><input type="password" class="login-inp" name="password" /></td>
          </tr>
          <tr>
            <th></th>
            <td valign="top">&nbsp;<!--<input type="checkbox" class="checkbox-size" id="login-check" />
              <label for="login-check">Remember me</label>--></td>
          </tr>
          <tr>
            <th></th>
            <td><input type="submit" class="submit-login" value="ឡុីអ៊ីន" /></td>
          </tr>
        </table>
        <?php echo ( $failed == '' ) ? '' : '<div id="message-red">'.$failed.'</div>';?>
      </div>
    </form>
    <!--  end login-inner -->
    <div class="clear"></div>
  </div>
  <!--  end loginbox --> 
  
</div>
<!-- End: login-holder -->
</body>
<?php
	clear_session(array('failed'));
?>
</html>